<fieldset class="module aligned {{ fieldset.classes }}">
  {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
  {% if fieldset.description %}<div class="description">{{ fieldset.description }}</div>{% endif %}
  {% for line in fieldset %}
      <div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
      {{ line.errors }}
      {% for field in line %}
	  {% if field.field.inline %}
		{% for inline_admin_formset in inline_admin_formsets %}
			{% ifequal inline_admin_formset.opts.name field.field.inline %}
				{% include inline_admin_formset.opts.template %}
			{% endifequal %}
		{% endfor %}
          {% else %}
		  {% if field.is_checkbox %}
              		{{ field.field }}{{ field.label_tag }}
          	 {% else %}
              		{{ field.label_tag }}{{ field.field }}
          	{% endif %}
          	{% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %}
	  {% endif %}
      {% endfor %}
      </div>
  {% endfor %}
</fieldset>